
import datetime
datetime.date.today()
datetime.date(2021, 10, 22)
datetime.date.today().day
22
SyntaxError: invalid syntax
datetime.date.today().month
10
datetime.date.today().year
2021
datetime.date.isoformat(datetime.date.today())
'2021-10-22'
import time
time.strftime("&H:%M")
'&H:09'

time.strftime("%H:%M")
'11:10'
A=time.strftime("%H:%M")
print("现在时间是",A)
现在时间是 11:10
import time
time.strftime("%A,%p")
import html
html.escape("this is HTML fragment contains a <script>script</script>.tag")
'this is HTML fragment contains a &lt;script&gt;script&lt;/script&gt;.tag'
html.unescape("I &hearts;Python's&lt;standard library&gt;.")
"I ♥Python's<standard library>."

